#include "lifegamerule.h"

LifeGameRule::LifeGameRule()
{
}

LifeGameRule::JudgeState LifeGameRule::calculate(int alive) {
    if ( alive == 3 ) {
        return BIRTH;
    } if (alive == 2) {
        return MAINTAIN;
    }

    return VANISH;
}
